  /**
   * Generate time : 2016-04-07 11:17:04
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHHoleReport 
 * table comment : 抽采进度汇报 
 */
public class ZMCHHoleReport extends DaoEPBase {

	private String fdReporter = "";		/* 汇报人*/
	private String fdKeyId = "";		/* 主键*/
	private String fdMiningName = "";		/* 矿井名称*/
	private String fdMiningId = "";		/* 矿井id*/
	private String fdCurrentDate = "";		/* 当前日期*/
	private String fdVirtualDate = "";		/* 调度日期*/
	private String fdWorknumId = "";		/* 生产班次*/
	private String fdReportDepartmentId = "";		/* 汇报部门ID*/
	private String fdReportDepartment = "";		/* 汇报部门*/
	private String fdReporterId = "";		/* 汇报人ID*/
	private String fdGroupId = "";		/* 班组*/
	private String fdGroupLeader = "";		/* 班组长*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdProjectId = "";		/* 工程ID*/
	private String fdProjectName = "";		/* 项目名称*/
	private String fdProjectPlace = "";		/* 工程地点*/
	private String fdRemark = "";		/* 备注*/
	private String fdHoleType = "";		/* 钻孔类型*/
	private String fdHoleNum = "";		/* 孔号*/
	private BigDecimal fdHoleDeep = new BigDecimal("0");		/* 孔深*/
	private BigDecimal fdHoleTotal = new BigDecimal("0");		/* 总孔数*/
	private BigDecimal fdHoleFinished = new BigDecimal("0");		/* 已完成孔数*/
	private String fdHolePerson = "";		/* 施工人员*/
	private String fdZcNum = "";		/* 钻厂号*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdReporter");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井id");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReporterId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGroupId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("班组");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGroupLeader");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("班组长");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("工程ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("项目名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProjectPlace");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("工程地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHoleType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("钻孔类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHoleNum");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("孔号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHoleDeep");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("孔深");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHoleTotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("总孔数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHoleFinished");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("已完成孔数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHolePerson");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("施工人员");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdZcNum");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("钻厂号");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCHHoleReport() {
		initMetaData();
	}
	
	/**
	 * get the fdReporter - 汇报人
	 * @return the fdReporter
	 */
	public String getFdReporter() {
		return this.fdReporter;
	}
	
	/**
	 * set the fdReporter - 汇报人
	 */
	public void setFdReporter(String fdReporter) {
		this.fdReporter = fdReporter;
	}
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井id
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井id
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdReporterId - 汇报人ID
	 * @return the fdReporterId
	 */
	public String getFdReporterId() {
		return this.fdReporterId;
	}
	
	/**
	 * set the fdReporterId - 汇报人ID
	 */
	public void setFdReporterId(String fdReporterId) {
		this.fdReporterId = fdReporterId;
	}
	/**
	 * get the fdGroupId - 班组
	 * @return the fdGroupId
	 */
	public String getFdGroupId() {
		return this.fdGroupId;
	}
	
	/**
	 * set the fdGroupId - 班组
	 */
	public void setFdGroupId(String fdGroupId) {
		this.fdGroupId = fdGroupId;
	}
	/**
	 * get the fdGroupLeader - 班组长
	 * @return the fdGroupLeader
	 */
	public String getFdGroupLeader() {
		return this.fdGroupLeader;
	}
	
	/**
	 * set the fdGroupLeader - 班组长
	 */
	public void setFdGroupLeader(String fdGroupLeader) {
		this.fdGroupLeader = fdGroupLeader;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdProjectId - 工程ID
	 * @return the fdProjectId
	 */
	public String getFdProjectId() {
		return this.fdProjectId;
	}
	
	/**
	 * set the fdProjectId - 工程ID
	 */
	public void setFdProjectId(String fdProjectId) {
		this.fdProjectId = fdProjectId;
	}
	/**
	 * get the fdProjectName - 项目名称
	 * @return the fdProjectName
	 */
	public String getFdProjectName() {
		return this.fdProjectName;
	}
	
	/**
	 * set the fdProjectName - 项目名称
	 */
	public void setFdProjectName(String fdProjectName) {
		this.fdProjectName = fdProjectName;
	}
	/**
	 * get the fdProjectPlace - 工程地点
	 * @return the fdProjectPlace
	 */
	public String getFdProjectPlace() {
		return this.fdProjectPlace;
	}
	
	/**
	 * set the fdProjectPlace - 工程地点
	 */
	public void setFdProjectPlace(String fdProjectPlace) {
		this.fdProjectPlace = fdProjectPlace;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the fdHoleType - 钻孔类型
	 * @return the fdHoleType
	 */
	public String getFdHoleType() {
		return this.fdHoleType;
	}
	
	/**
	 * set the fdHoleType - 钻孔类型
	 */
	public void setFdHoleType(String fdHoleType) {
		this.fdHoleType = fdHoleType;
	}
	/**
	 * get the fdHoleNum - 孔号
	 * @return the fdHoleNum
	 */
	public String getFdHoleNum() {
		return this.fdHoleNum;
	}
	
	/**
	 * set the fdHoleNum - 孔号
	 */
	public void setFdHoleNum(String fdHoleNum) {
		this.fdHoleNum = fdHoleNum;
	}
	/**
	 * get the fdHoleDeep - 孔深
	 * @return the fdHoleDeep
	 */
	public BigDecimal getFdHoleDeep() {
		return this.fdHoleDeep;
	}
	
	/**
	 * set the fdHoleDeep - 孔深
	 */
	public void setFdHoleDeep(BigDecimal fdHoleDeep) {
		this.fdHoleDeep = fdHoleDeep;
	}
	
	/**
	 * get the fdHolePerson - 施工人员
	 * @return the fdHolePerson
	 */
	public String getFdHolePerson() {
		return this.fdHolePerson;
	}
	
	/**
	 * set the fdHolePerson - 施工人员
	 */
	public void setFdHolePerson(String fdHolePerson) {
		this.fdHolePerson = fdHolePerson;
	}
	/**
	 * get the fdZcNum - 钻厂号
	 * @return the fdZcNum
	 */
	public String getFdZcNum() {
		return this.fdZcNum;
	}
	
	/**
	 * set the fdZcNum - 钻厂号
	 */
	public void setFdZcNum(String fdZcNum) {
		this.fdZcNum = fdZcNum;
	}
	
	public BigDecimal getFdHoleTotal() {
		return fdHoleTotal;
	}
	public void setFdHoleTotal(BigDecimal fdHoleTotal) {
		this.fdHoleTotal = fdHoleTotal;
	}
	public BigDecimal getFdHoleFinished() {
		return fdHoleFinished;
	}
	public void setFdHoleFinished(BigDecimal fdHoleFinished) {
		this.fdHoleFinished = fdHoleFinished;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdReporter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporter")), fdReporter));
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdReporterId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporterId")), fdReporterId));
		setFdGroupId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroupId")), fdGroupId));
		setFdGroupLeader(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroupLeader")), fdGroupLeader));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdProjectId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectId")), fdProjectId));
		setFdProjectName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectName")), fdProjectName));
		setFdProjectPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProjectPlace")), fdProjectPlace));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdHoleType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHoleType")), fdHoleType));
		setFdHoleNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHoleNum")), fdHoleNum));
		setFdHoleDeep(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdHoleDeep")), fdHoleDeep));
		setFdHoleTotal(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdHoleTotal")), fdHoleTotal));
		setFdHoleFinished(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdHoleFinished")), fdHoleFinished));
		setFdHolePerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHolePerson")), fdHolePerson));
		setFdZcNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdZcNum")), fdZcNum));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdReporter",StringUtils.toString(fdReporter, eiMetadata.getMeta("fdReporter")));	
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdReporterId",StringUtils.toString(fdReporterId, eiMetadata.getMeta("fdReporterId")));	
			map.put("fdGroupId",StringUtils.toString(fdGroupId, eiMetadata.getMeta("fdGroupId")));	
			map.put("fdGroupLeader",StringUtils.toString(fdGroupLeader, eiMetadata.getMeta("fdGroupLeader")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdProjectId",StringUtils.toString(fdProjectId, eiMetadata.getMeta("fdProjectId")));	
			map.put("fdProjectName",StringUtils.toString(fdProjectName, eiMetadata.getMeta("fdProjectName")));	
			map.put("fdProjectPlace",StringUtils.toString(fdProjectPlace, eiMetadata.getMeta("fdProjectPlace")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdHoleType",StringUtils.toString(fdHoleType, eiMetadata.getMeta("fdHoleType")));	
			map.put("fdHoleNum",StringUtils.toString(fdHoleNum, eiMetadata.getMeta("fdHoleNum")));	
			map.put("fdHoleDeep",StringUtils.toString(fdHoleDeep, eiMetadata.getMeta("fdHoleDeep")));	
			map.put("fdHoleTotal",StringUtils.toString(fdHoleTotal, eiMetadata.getMeta("fdHoleTotal")));	
			map.put("fdHoleFinished",StringUtils.toString(fdHoleFinished, eiMetadata.getMeta("fdHoleFinished")));	
			map.put("fdHolePerson",StringUtils.toString(fdHolePerson, eiMetadata.getMeta("fdHolePerson")));	
			map.put("fdZcNum",StringUtils.toString(fdZcNum, eiMetadata.getMeta("fdZcNum")));	
			
		return map;
	
	}
}